interface User {
  name?: string
  id?: number
}

function findUser(identifier: User): void {
  // 处理用户名字段
  console.log(`Finding user by name: ${identifier.name}`)
}
findUser({ name: "alice", id: 123 })
findUser({ name: "bob", id: 456 })
